<!--
title: 字典管理
description: 
published: true
date: 2025-06-19T07:11:12.415Z
tags: 
editor: ckeditor
dateCreated: 2025-06-19T07:11:12.415Z
-->

<h1>获取字典</h1>
<p>&nbsp;</p>
<pre><code class="language-plaintext"># 获取字典
sdk_get_map(key)</code></pre>
<p>&nbsp;</p>
<ul>
  <li>参数说明<br>key：字典KEY</li>
</ul>
<p>&nbsp;</p>
<h2>简单示例</h2>
<p>&nbsp;</p>
<pre><code class="language-plaintext"># 以接口代码为例

# 导入SDK 
global log_print, sdk_get_map

# 获取用户类型下拉列表
user_types = sdk_get_map("USER_TYPE")

# 打印用户类型下拉列表
log_print(user_types, "INFO")

# 接口返回用户类型下拉列表
return user_types</code></pre>
<p>&nbsp;</p>
